<template>
  <div class="appx">
    <div class="option">
      <router-link to="/note" active-class="active">记事本</router-link>
      <router-link to="/shopping" active-class="active">购物车</router-link>
    </div>
    <div class="main">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup lang='ts' name="App">
import { ref, reactive } from 'vue'

</script>


<style lang='scss' scoped>
.appx{
  
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  .option{
    width: 10%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .option a{
    width: 100%;
    text-decoration: none;
    text-align: left;
    height: 30px;
    line-height: 30px;
    border: 1px solid rgba(177, 179, 185, 0.3);
    color: black;
    background-color: #fff;
    cursor: pointer;

  }
  .main{
    width: 90%;
    margin-left: 5%;
  }
  .option a:hover{
    background-color:gray ;
    color: rgb(247, 238, 214) ;
    opacity: 0.5;
    // color: ;
  }
  .option .active{
    background-color:gray ;
    color: rgb(247, 238, 214) ;
    opacity: 1 !important;
  }
}
</style>